@extends('mobile.inc.common')
@section('title')
	<title>{{$archive->title}}</title>
	<meta name="keywords" content="{{$archive->tags()->pluck('name')->implode(',')}}" />
	<meta name="description" content="{{$archive->abstract}}"/>
@endsection
@section('content')

		<div class="pet_mian">
			<!--header-->
			<header class="am-header i-top">
				<div class="am-header-left am-header-nav logo">
					<a href="">

						<img src="{{asset('mobile/images/logo.png')}}">
					</a>
				</div>

				<div class="am-header-right am-header-nav i-top-pic">
					<a href="">
						<img src="{{asset('mobile/images/fdj.png')}}">
					</a>
					<a href="">
						<img src="{{asset('mobile/images/user.png')}}">
					</a>
				</div>
			</header>
			<!--header-->
			<!--banner-->
			<div class="video-detail-v" style="margin-top: 96px;">
				<div class=" author-v video-d-v" style="width:100%;overflow: hidden;">
					{!! $archive->detail->link !!}
				</div>
				<h2>{{$archive->title}}</h2>
				<div class="v-author">发布者：<span>@if($archive->user_id==0){{$archive->detail->author}} @else{{$archive->user->nickname}}@endif</span></div>
				<div class="news-tabs author-tabs v-tabs">
					<dl class="tab">
						@foreach($archive->tags()->get() as $tag)
							{{--<dt style="border: solid 1px #{{$tag->background_color or '006633'}};">--}}
							<dt style="background: #0C80BA;"><a href="{{$tag->url}}">{{$tag->name}}</a></dt>
							{{--</dt>--}}
						@endforeach
					</dl>

					<button class="news-content-btn-more -mob-share-open" ></button>
					<a class="news-content-comment" href="#comment"><span class="has-comment"></span></a>
					@include('mobile.inc.share')
				</div>
			</div>

			<div class="v-list">
				<div class="news-content-title news-c-d-title v-list-title">
					<span class="news-c-d-more-logo"></span >
					<span class="news-c-d-more-word">看看其他的</span>
					<a href="{{url('video')}}">更多<em>></em></a>
				</div>
				@foreach($new as $v)
				<div class="v-c-item am-g">
					<div class="am-u-sm-8 v-i-left">
						<h2><a href="{{route('video.show', [$v->id])}}">{{$v->title}}</a></h2>
						<div class="v-i-tab">
							<dl class="tab">
								@foreach($v->tags()->get() as $tag)
									<dt style="background:#{{$tag->background_color or '0C80BA'}};"><a href="{{$tag->url}}">{{$tag->name}}</a></dt>
								@endforeach
							</dl>
						</div>
						<div class="v-author v-i-author">发布者：<span>{{$v->user->nickname}}</span></div>

					</div>
					<div class="am-u-sm-4 v-i-right">
						<a href="{{route('video.show', [$v->id])}}">
							<img src="{{route('image_m', [trim($v->cover, '/'), '115x64'])}}" />
							<div class="v-i-btn"></div>
						</a>

					</div>
				</div>
				@endforeach
			</div>
			<div id="comment">
				@include('inc.comment')
			</div>
		</div>
@endsection